//
// Created by xili on 2024/8/4 19:59.
// Go big or go home.
//
#include <iostream>
#include <vector>

using namespace std;

class Solution {
public:
    int maximumValue(vector<string> &strs) {
        int ans = -1;
        for (auto &item: strs) {
            bool flag = true;
            for (auto &item1: item) {
                if (isalpha(item1)) {
                    flag = false;
                    break;
                }
            }
            ans = max(ans, (int) (flag ? stoi(item) : item.size()));
        }
        return ans;
    }
};